package com.design.patterns.list.flyweight;

/**
 * @author Wangzhiwen
 */
public class ConcreteFlyweight extends Flyweight {

    // 内部状态
    private String internalState;

    public ConcreteFlyweight(String internalState) {
        this.internalState = internalState;
    }

    public String getInternalState() {
        return internalState;
    }

    // 外部状态，在客户端维护
    @Override
    protected void operation(String extrinsicState) {
        System.out.println(extrinsicState);
    }

}
